package com.wy.pojo;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: wy
 * @Date:2019/10/25 22:56
 */
  @Data

  @Table(name = "tb_user")
public class User implements Serializable {
         @Id
         @KeySql(useGeneratedKeys = true)
      private Long id;
     private String userName;
     private String password;
     private String name;
     private Integer age;
     private Integer sex;
     private Date birthday;
     private String note;
     private  Date created;
     private Date updated;


}
